Skip to Content
avatar image
Former Member

java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined

When I tried to do this:

wdContext.currentCheck_Material_PriceElement().setDateStart("2009-04-27");

It gives the error:

java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined

What could be the error? 😔

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 28, 2009 at 05:15 AM

    Hi Jackson,

    Try to change the cardinality of the node Check_Material_PriceElement to 1..1 or 1..n.

    Cheers,

    Arafat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 28, 2009 at 04:40 AM

    Jackson,

    check the type of 'DateStart'?

    if it is of type Date, then you cannot pass a string in the argument as "2009-04-27".

    you need to pass a 'Date' Parameter!

    regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 28, 2009 at 03:45 AM

    Hi Jackson,

    Please check in the Check_Material_Price node that whether the DateStart attribute is present or not. I guess that is not present.

    However if that is present then is this node a model imported node. If this is a model imported node then it might be the case that there is some chnages in the model. You need to check in the backend RFC that whether this attribute actually exist in backend or not.

    Finally, Just restart your server and redeploy the application, and then try to run the application again. I have a feeling that if all the above mentioned things are correct then your application is not getting deployed properly.

    You can just try to undeploy your application and then redeploy of that once again.

    I hope this solves your issue. Please revert back in case there is still some problem.

    Thanks and Regards

    Pravesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yes I tried redeployed all the services, and the application too.. it still gives the error which I have no idea why.. 😔