Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Link to ECInstanceId #6

@lmborione

Description

@lmborione

I like to run a connector with the following type of input information :

ECInsanceId Name AssetType
0x20000000022 My asset Viaduct

I configure my connector with the following

const subject1 = new pcf.SubjectNode(this, { key: "Pablo-Handover" });
const lnkModel = new pcf.ModelNode(this, { key: "LinkModel1", subject: subject1, modelClass: LinkModel, partitionClass: LinkPartition });
const phyModel = new pcf.ModelNode(this, { key: "PhysicalModel1", subject: subject1, modelClass: PhysicalModel, partitionClass: PhysicalPartition });
const jsonLoader = new pcf.LoaderNode(this, { key: "pablo-xlsx-loader", model: lnkModel, loader: new pcf.XLSXLoader({ format: "xlsx", entities: ["Asset"], relationships: [], primaryKeyMap: { Asset: "ECInstanceId" }, defaultPrimaryKey: "ECInstanceId", }), });
const asset = new pcf.ElementNode(this, { key: "Asset", model: phyModel, dmo: elements.Asset, });

And the element with :

export const Asset: pcf.ElementDMO = { irEntity: "Asset", ecElement: { name: "Asset", baseClass: "BisCore:PhysicalElement", properties: [ { name: "Name", type: "String", }, { name: "Type", type: "String", }, ], }, categoryAttr: "ECInstanceId", };

Unfortunately I got :

Checking to see if there is an authorization response to be delivered.
Info |itwin.pcf| Your Connector Job has started
Info |itwin.pcf| Started Domain Schema Update...
Info |itwin.pcf| Completed Domain Schema Update...
Info |itwin.pcf| Started Dynamic Schema Update...
Info |itwin.pcf| Dynamic Schema State: Unchanged
Info |itwin.pcf| Completed Dynamic Schema Update.
Info |itwin.pcf| Started Subject Update...
Info |itwin.pcf| Subject State = Unchanged
Info |itwin.pcf| Completed Subject Update.
Info |itwin.pcf| Started Data Update...
Info |itwin.pcf| Loader State = New
Error |itwin.pcf| Error inserting element, class=PabloDynamic:Asset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions