Hi Colleagues!
I have to syncronize Sales Header and Sales Line with Dataverse. So, I've created both tables in Dataverse.
Sales Line's Document.No column lookups to Sales Header Id.
Altpgen made me neccessary fields:
field(46;bctmsprt_SL_DocumentNo;GUID)
{
ExternalName = 'bctmsprt_sl_documentno';
ExternalType = 'Lookup';
Description = '';
Caption = 'Document No.';
TableRelation = "CDS bctmsprt_Sales".bctmsprt_SalesId;
}
field(47;bctmsprt_SL_DocumentNoName;Text[100])
{
FieldClass = FlowField;
CalcFormula = lookup("CDS bctmsprt_Sales".bctmsprt_No where(bctmsprt_SalesId=field(bctmsprt_SL_DocumentNo)));
ExternalName = 'bctmsprt_sl_documentnoname';
ExternalType = 'String';
ExternalAccess = Read;
}
It looks like good.
But I'm getting an error during Full Synchronization job:
The data could not be updated because of the following error: Document No. 102205 must be coupled to a record in Dataverse.
I have empty Table Sales Lines in DataVerse. Sales Header table in Dataverse is synchronized and coupled. Could you help me? Or might share the link with related tables synchronizing.