Quantcast
Channel: ProjectWise Design Integration Wiki
Viewing all articles
Browse latest Browse all 1890

Error creating link data. Invalid argument passed to dbservice module.

$
0
0
Current Revision posted to ProjectWise Design Integration Wiki by Sukalyan Senapati on 3/6/2024 2:25:15 PM

Error creating link data. 
Invalid argument passed to dbservice module. 

Product(s) and Version(s):  

ProjectWise Explorer 

Problem:   

On trying to add a document to a folder in ProjectWise Explorer, the following error appears, 

Last Error [56014] 

Error creating link data. 

Invalid argument passed to dbservice module. 

  

Solution: 

The errors written in the pwc.log file (ProjectWise Explorer client log) are as follows: 

2024-02-20 18:08:51,272 ERROR [0x00007ad4] pwise.server - Error -11114 "failed to format an attribute value to SQL" reported at func: dmdAttributeRecordStringInserValue line: 440 
2024-02-20 18:08:51,272 INFO  [0x00007ad4] pwise.netapi - response received, status = -11114, server session = 0 
2024-02-20 18:08:51,272 ERROR [0x00007ad4] pwise.dms - Request 5709 return code -11114. Response size: 0 
2024-02-20 18:08:51,276 ERROR [0x00007ad4] pwise.dms - Error 56014 "Error creating link data. 
Invalid argument passed to dbservice module." 

The ProjectWise Explorer client log is present in the following location: 

C:\Users\<username>\AppData\Local\Bentley\Logs 

The error code -11114 or 56014 indicates that an invalid/unexpected argument was passed to the database. Since this error message appeared during document creation, an invalid argument must have been passed to the environment table in the database. 

Further investigations revealed that the root cause of the issue was an attribute with incorrect Data Type. 

This attribute had a suspicious Data Type of ’15 Undefined’ as shown in the screenshot below. Generally, it is text, int or datetime. The Data Type of attributes can be observed in the database (for on premise ProjectWise server) or, extracted with the PowerShell command-let of Export-PWEnvironments (for ProjectWise servers hosted by Bentley). 


The attribute was deleted, and this fixed the issue. 

Before proceeding to delete an attribute, it should be checked if the attribute contains any data. Following two ways can be used to check if any attribute contains data from before: 

  • Fetching the information directly from the database: 

To check if an attribute (say, attr) in an environment (say, envSample) contains any data, the following SQL query can be run in the ProjectWise database: 

SELECT attr FROM envSample 

  • Using ProjectWise Document Search inside ProjectWise Explorer: 

ProjectWise Document Search can also be used to check if the attribute contains any data. Documents belonging to the environment can be searched using the Document Search tool by following the steps given in the link below: 

https://docs.bentley.com/LiveContent/web/ProjectWise%20Explorer%20Help-v12/en/GUID-BAEA3B35-0C06-6765-8FCE-817741410F3B.html 

Once the environment is selected on the ‘Search by Form’ dialog box, click on Apply to list the documents. The attribute needs to be added as a column to the view.  


The result of the search will help to understand if the required attribute contains any data inside it. The search results can be selected, copied to clipboard (tab separated) and pasted to an Excel spreadsheet as shown in the screenshot below. 

If the attribute contains data, it might need to be copied to a new attribute. 

The attribute can be deleted from an environment by using the ProjectWise Administrator tool. The steps can be found in the following link: 

https://docs.bentley.com/LiveContent/web/ProjectWise%20Administrator%20Help-v12/en/GUID-BD2CB465-9ECA-B540-39D0-5E3965DFEF29.html 


Viewing all articles
Browse latest Browse all 1890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>