Skip to main content

Not all bind variables have a corresponding argument

  • February 19, 2025
  • 9 replies
  • 134 views

Forum|alt.badge.img+7
  • Sidekick
  • 40 replies

Hi all,

 

When I would like to create a read only custom field on the purchase requisition lines page, I get the following error;

What could be the cause of the problem? 
Could  you help me solve the problem?

 

 

 

 

Thanks

Ozge

9 replies

PRODQ
Superhero (Customer)
Forum|alt.badge.img+17
  • Superhero (Customer)
  • 465 replies
  • February 19, 2025

I think...you have order no, line no, release no in your argument and get but not in your ‘where’ clause.

 

Linda


Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 16 replies
  • February 19, 2025

In the Get Due AT Dock call use “:” in front of t.line_no,t.order_no and t.release_no 


debber24
Do Gooder (Customer)
Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 3 replies
  • February 19, 2025

 Columns on the purchase requisition lines corresponding the the purchase order line are assg_line_no and assg_release_no. 

Just use the PL/SQL Expression, it gets the total remaining quantity due at dock. 

 


Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 16 replies
  • February 19, 2025

The error “Not all bind variables have a corresponding argument” means that you have parameters declared that you are not using with the colon in front of it with in the query. Just add the colon and the error will go away. All arguments that are listed should be in the format

:argument_name

 

so just do “Purchase_Order_Line_API.Get_Due_AT_Dock(:t.order_no,:t.line_no,:t.release_no)”

and your error message should go away. 


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 40 replies
  • February 19, 2025

Hi ​@spetkus2 ,

 

I did as you said but unfortunately the result has not changed, I continue to get the same error;

 

Thanks


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 40 replies
  • February 19, 2025

Hi ​@debber24 ,

 

First of all, thank you for your response.

I would like to see the relevant quantity information not on an order basis but on a part and supplier basis, so I need the total value under these constraints.

 

Thanks 


Forum|alt.badge.img+10
  • Hero (Partner)
  • 120 replies
  • February 19, 2025

Just keep your original select statement, but remove ,t.order_no,t.line_no,t.release_no from the Arguments, since you’re not using them in the query.


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 40 replies
  • February 20, 2025

Hi ​@AussieAnders,

 

First of all, thanks for your response.

I did as you said unfortunately the result has not changed, I continue to get the same error;

 


Forum|alt.badge.img+10
  • Hero (Partner)
  • 120 replies
  • February 20, 2025

Which entity is your custom field on? Is it PurchaseReqLinePart?

If so, and this is your select statement:

Then arguments v.part_no, v.vendor_no should do the trick, but also replace :t. with just : in your select statement. That way, the part number and vendor number will be recognised as bind variables, binding to your arguments. I can’t be bothered retyping the whole thing, but here’s the important part:

where t.part_no = :part_no
  and t.invoicing_supplier = :vendor_no

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings