Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft SharePoint | - |
Not Applicable | - |
The SharePoint library was modified and new attributes of the List Item were created. The type of the attributes is 'Managed Metadata'. After SharePoint Tools/Get Metadata has been run, the SharePoint Notification Listener was unusable and showed errors in the output Tab: "the output of the activity is empty".
In 'Show Console' the following error displayed:
BW-SharePoint-140000 errorRole - com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "p4" (for attribute "type")
at [row,col {unknown-source}]: [1,8180]
java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "p4" (for attribute "type")
at [row,col {unknown-source}]: [1,8180]
1). The current version of the SharePoint BW plugin only supports the output "Managed Metadata" in the SharePoint Notification listeners selectItem activity. We cannot use the addListItem activity or the updateListItem activity to set value to "Managed Metadata".
2). For the error "java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "p4" (for attribute "type")", the cause is that there is a defect in the Axis2 library(org.apache.axiom.jar). This issue only affects the functionality of Design Time in BW Designer. It works in runtime.
To resolve the error in Design Time:
Modify the downloaded Metadata file and correct the invalid XML content manually.
1). Find the Metadata file of the target List in the BW project. This file can also be found in the project directory in Windows Explorer. (See attached. Filename:01.jpg).
2). Open this file with an external text editor. Format the XML content. Search with the keyword "p4" in this file. (See attached. Filename: 02.jpg)
3). Find the incorrect XML content. (See attached. Filename: 02.jpg).
4). Correct the invalid XML content. Copy the "p4" definition to the parent node "ArrayOfProperty" or "Customization". (See attached. Filename: 03.jpg).
5). The plugin does not need the "Customization" node. If you do not want to correct it, just remove the "Customization" node.