UNVERIFIED SOLUTION i

Resolving Error: Fault code: 3082 while Loading Metadata to Portrait Explorer and Portrait Dialogue.

Issue

Following error occurs while loading the metadata to Portrait Explorer and Portrait Dialogue.

*** Error: Fault code: 3082, Detail: *******
Please check Portrait Shared Server logs for further information.

Following entries can be seen in the Event Viewer.

====================================================

at Portrait.Mas.Cms.Services.DataAccessLayer.PsrSave.FieldSave.Save(Field dtoField, Field& psrField) in d:\Build\80\Sources\CMS\Services\DataAccessLayer\PsrSave\FieldSave.cs:line 113
   at Portrait.Mas.Cms.Services.DataAccessLayer.DisconnectedEntitySaveBase`2.Save(TDisconnectedEntity disconnectedEntity) in d:\Build\80\Sources\CMS\Services\DataAccessLayer\DisconnectedEntitySaveBase.cs:line 71
   at Portrait.Mas.Cms.Services.MetadataServices.MetadataService.SaveField(State& state, Field& field, Boolean checkDependents, Boolean saveDependents, String externalSystemName) in d:\Build\80\Sources\CMS\Services\MetadataServices\MetadataService.cs:line 1343
   at Portrait.Mas.Cms.Services.MetadataServices.MetadataService.b__68(ExternalSystemFieldMapping fm) in d:\Build\80\Sources\CMS\Services\MetadataServices\MetadataService.cs:line 1673
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Portrait.Mas.Cms.Services.MetadataServices.MetadataService.UpdateExternalSystem(State& state, ExternalSystem& externalSystem) in d:\Build\80\Sources\CMS\Services\MetadataServices\MetadataService.cs:line 1677
   at Portrait.Mas.Cms.Services.MetadataServices.MetadataService.UpdateMetadata(State& state, String externalSystemName, String domainName, ExternalSystem& externalSystem, Nullable`1 pcmDomainId) in d:\Build\80\Sources\CMS\Services\MetadataServices\MetadataService.cs:line 567
   at SyncInvokeUpdateMetadata(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at Portrait.Mas.Cms.Services.Utils.SecureOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) in d:\Build\80\Sources\CMS\Services\Utils\SecureOperationInvoker.cs:line 193
Category: PortraitSharedServices_Log, PortraitSharedServices_Event
Priority: -1
EventId: 3082

====================================================

Cause

The cause of the issue was the mismatch between the field names on both the system.

Field names on the system from where the metadata is exported are different from the field name on the system where metadata is imported.

For example: 

1. B*P*ay_cnt

2. B*p*ay_cnt.

In the above example, the field name in one system is 'B*P*ay_cnt' and on the other system is 'B*p*ay_cnt'

Resolution

UPDATED: April 19, 2017
This has been identified as a defect in the Portrait Explorer and this will be fixed in the future release.

A quick workaround is to correct/match the name of the fields names on both the systems.