An error occurred while retrieving the data with a!queryEntity

Hi All,

I am running this queryEntity in script task inside a process model but i am getting an error

ERROR: Expression evaluation error at function a!queryEntity [line 1]: An error occurred while retrieving the data

a!queryEntity(

entity: cons!tableName,

query: a!query( pagingInfo: a!pagingInfo( 1, - 1 ))

) .data.columnName

Note: I am having 20,000 rows in that table will that be the reason?

Could any one help me with this issue

  Discussion posts and replies are publicly visible

Parents
  • Hello nikkheelm,

    Mostly like that kind of error message says the same and just to be sure could you please change the batch size to 5 or 10 and then try to run the node and see if that works if that works then we are sure it is the timeout error for the fetching large amount of data.

    Also what is the type of the PV! that you are trying to store the value in.

    It should be of the same CDT type.

  • 0
    A Score Level 2
    in reply to Ashwin

    hi ashwina0002 thanks for the answer

    i have changed the batch size to 5 or 10 it is working i am getting data

    Also what is the type of the PV! that you are trying to store the value in.

    i am using text pv type because as per my requirement i am getting all the values from one specific column in the above table and storing in this pv variable

    touniformstring(a!queryEntity(...).data.column1) this is what i am doing in that script task

Reply
  • 0
    A Score Level 2
    in reply to Ashwin

    hi ashwina0002 thanks for the answer

    i have changed the batch size to 5 or 10 it is working i am getting data

    Also what is the type of the PV! that you are trying to store the value in.

    i am using text pv type because as per my requirement i am getting all the values from one specific column in the above table and storing in this pv variable

    touniformstring(a!queryEntity(...).data.column1) this is what i am doing in that script task

Children