We had interesting problem with updating of some data entities' DefaultDimension. Normally for update Connector asks for original data (performs find operation), uses those data as default data and overwrite only those data where values are provided from 3rd party system. It means that any of data defaulted in AX, when create operation was performed, is not overwritten by empty values.
Originally I wanted to write about my problems with Dynamics AX and their solutions. But then I started to play with Dynamics CRM and original purpose of my blog has been changed. Now it is a collection of the problems which I found on my way through my life with AX and CRM .o)
Tuesday, 12 May 2015
Wednesday, 11 February 2015
Default Dimensions seem to be just single field of type long instead of dictionary entity in Connector and in VS
There is probably
incorrect Extended Data Type on DefaultDimension field in table. There should
be DimensionDefault. If there is another one (e.g. RefRecId) then correct code
is not generated by AIF wizard to Ax<Table> class and to Data object class.
Ax<Table>
class:
change EDT in parmDefaultDimension method to
"DimensionDefault"
<Service>_<Table>
class:
add method
createDefaultDimension
public AifDimensionAttributeValueSet createDefaultDimension()
{
return this.get_NewContainer(#DefaultDimension);
}
change method
parmDefaultDimension
public
AifDimensionAttributeValueSet
parmDefaultDimension(AifDimensionAttributeValueSet _value = null)
{
if (!prmisDefault(_value))
{
this.set_Container(#DefaultDimension,
_value);
}
return
this.get_Container(#DefaultDimension);
}
Subscribe to:
Posts (Atom)