Quantcast
Channel: OpenPlant | AutoPLANT Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4153

OPPID plant project synchronize to database error

$
0
0

When plant project  synchronize to database, I get the errors:

8-27-18 11:45:57 LOG_ERROR - Bentley.Plant.CommonTools.Logging - Database Error:
Conversion for instance (InstanceId:0000000198, GlobalId:c6d2282a-9c51-4daa-935d-32497b2c9911) of class INSTRUMENT has failed. Property NAME could not be converted.
Check database columns to ensure field value types match ECProperty value types.
Ex. A string column with only numeric data can go to a double ECProperty. However if the db column has a mixture of alpha and numeric characters, an error will occur.

8-27-18 11:46:04 LOG_ERROR - Bentley.Plant.CommonTools.Logging - Database Error:
Conversion for instance (InstanceId:0000000198, GlobalId:c6d2282a-9c51-4daa-935d-32497b2c9911) of class INSTRUMENT has failed. Property NUMBER could not be converted.
Check database columns to ensure field value types match ECProperty value types.
Ex. A string column with only numeric data can go to a double ECProperty. However if the db column has a mixture of alpha and numeric characters, an error will occur.

I am using the OpenPlant PID V8i (SELECTseries 6) .

I have change the INSTRUMENT NAME to "this.PLANT_AREA & "-" & this.DEVICE_TYPE_CODE & "-" & this.SYSTEM & this.NUMBER" and change the parser regular expression to " ^(?<PLANT_AREA>[\d]{3})-(?<DEVICE_TYPE_CODE>[\w]{2,3})-(?<SYSTEM>[\d]{1})(?<NUMBER>[\d]{3})" use the Class Editor. The INSTRUMENT TAG format is 253-PIT-1009 in my project。

The firs time synchronize to the database, I get no error, and It show correct in the database. But synchronize again,I get the error.

I  change the parser regular expression to " ^(?<PLANT_AREA>[\d]{3})-(?<DEVICE_TYPE_CODE>[\w]{2,3})-(?<SYSTEM>[\d]{1})" , when synchronize to the database, I get no error, but this is not the correct parser regular expression,it will cause other problem in the database.

So it is the property NUMBER ECProperty problem. How to fix the problem? I have try many times, but can not solve the problem. 

I have change the EQUIPMENT, PIPELINE and VALVE name and parser regular expression by the same way, the work correctly.


Viewing all articles
Browse latest Browse all 4153

Trending Articles



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