New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Assistant is unable to apply rules and update parcel fabric records when GlobalID field is present #71

Closed
pavezina opened this Issue Sep 28, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@pavezina

pavezina commented Sep 28, 2015

At line 2548 of the “AttributeAssistantEditorExtension.cs”


if (pFLyr != null) //make sure there's at least one valid fabric feature layer
{
int iObjClassID = inObject.Class.ObjectClassID;
ITable InMemTable = AAState._fabricInMemTablesLookUp[iObjClassID];
IRowBuffer pRowBuff = InMemTable.CreateRowBuffer();
IFields pIncomingFlds = inObject.Fields;
for (int i = 0; i < pIncomingFlds.FieldCount; i++)
{
IField pFld = pIncomingFlds.get_Field(i);
2548: if (pFld.Type == esriFieldType.esriFieldTypeOID || pFld.Type == esriFieldType.esriFieldTypeGeometry)
continue;
object val = inObject.get_Value(i);
pRowBuff.set_Value(i, val);
}

I think it’s missing the check for the GlobalID. If this is not there, you get an error message that “Field is not Editable”.

if (pFLyr != null) //make sure there's at least one valid fabric feature layer
{
int iObjClassID = inObject.Class.ObjectClassID;
ITable InMemTable = AAState._fabricInMemTablesLookUp[iObjClassID];
IRowBuffer pRowBuff = InMemTable.CreateRowBuffer();
IFields pIncomingFlds = inObject.Fields;
for (int i = 0; i < pIncomingFlds.FieldCount; i++)
{
IField pFld = pIncomingFlds.get_Field(i);
2548: if (pFld.Type == esriFieldType.esriFieldTypeOID || pFld.Type == esriFieldType.esriFieldTypeGeometry || pFld.Type == esriFieldType.esriFieldTypeGlobalID)
continue;
object val = inObject.get_Value(i);
pRowBuff.set_Value(i, val);
}

@MikeMillerGIS

This comment has been minimized.

Show comment
Hide comment
@MikeMillerGIS

MikeMillerGIS Sep 28, 2015

Member

Thanks, I added it and it will be included in the next release

Member

MikeMillerGIS commented Sep 28, 2015

Thanks, I added it and it will be included in the next release

MikeMillerGIS added a commit that referenced this issue Sep 28, 2015

@MikeMillerGIS MikeMillerGIS added this to the 10.4 milestone Sep 29, 2015

@MikeMillerGIS MikeMillerGIS self-assigned this Sep 29, 2015

@MikeMillerGIS

This comment has been minimized.

Show comment
Hide comment
@MikeMillerGIS

MikeMillerGIS Sep 29, 2015

Member

Will be delivered in the 10.4 release

Member

MikeMillerGIS commented Sep 29, 2015

Will be delivered in the 10.4 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment