cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Error using Resources["EntityServices"].CloneThing(params)

DuanGauche
5-Regular Member

Error using Resources["EntityServices"].CloneThing(params)

This seems to be a bug which we have recreated in 9.1.1

5 REPLIES 5
Jimwang
13-Aquamarine
(To:DuanGauche)

@DuanGauche , I test it with the below code in 9.2.1, it works fine. What is the exact code and error in your site?

//==========

let params = {
name: "Test_Cloned_Target_Thing" /* STRING */,
description: "This is cloned Thing" /* STRING */,
sourceThingName: "testcloneSourceThing" /* THINGNAME */,
tags: undefined /* TAGS */
};

// no return
Resources["EntityServices"].CloneThing(params);

 

//==========

DuanGauche
5-Regular Member
(To:Jimwang)

Supposedly 9.2.1 fixes a lot, but we will need to see that.

 

This article claims: "CloneThing Service from Resources EntityServices should be used for creating exact copy of the Thing including the data" - https://www.ptc.com/en/support/article/CS272038

 

@Jimwang  could you please verify that the persisted property data is also copied?

 

Thanks,

Duan

Jimwang
13-Aquamarine
(To:DuanGauche)

@DuanGauche , I tested it that the persisted property data is NOT copied . I add comments to the article CS272038 for waiting for their verification.

DuanGauche
5-Regular Member
(To:Jimwang)

@Jimwang have you had verification on this yet?

Jimwang
13-Aquamarine
(To:DuanGauche)

The article 272038 has been merged to article CS326332. Please check https://www.ptc.com/en/support/article/CS326332

 

Announcements