question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table template parameter mismatch

See original GitHub issue

Hello I have a table template with many parameters.

I have a parameter “insuranceTax” and “insuranceTaxParagraph” and “geoSegmentation” and “geoSegmentationParagraph”

When I ran the test then in the insuranceTaxParagraph field I received the value of InsuranceTax followed by the text Paragraph. In this example 10.00Paragraph (the same happened for the geoSegmentationParagraph.)

It looks like it matches with the InsuranceTax field instead of the InsuranceTaxParagraph field.

As a workaround I renamed my 2 parameters to paragraphInsuranceTax and paragraphSegmentation

Does it match only on the first x characters or is there something else that I am missing here?

Added the table template which was indeed missing

The issue that I have is that the value for my insuranceTaxParagraph = 0901 But when the script runs it uses the value of insuranceTax = 10,00 concatenated with the word paragraph.

Hopefully it is clear now?

* UPDATE: The Table template calls another scenario which is not a table template maybe that is the origin of my issue? I added that scenario also at the bottom*

|add plan delete first when already exists | |planName |dutchDescription|englishDescription|frenchDescription|germanDescription|dutchShortDescription|englishShortDescription|frenchShortDescription|germanShortDescription|productGroup|productType|productTargetGroupA|productTargetGroupB |productTargetGroupC|productForEntireFamily|productWithReserves|rizivContribution|insuranceTax|insuranceTaxparagraph|commisionAM|commisionPlanId|kpe|medicard|medicardParagraph|mutualityStatus|geoSegmentation |geoSegmentationParagraph|startDate |endDate|maxAge|transfertPossible|annualPremiumAdaptation|errorMessage?| |_TSTPLAN1|NL |EN |FR |DE |NL Short |EN Short |FR Short |DE Short |Inpatient |CORPORATE |PREFERABLE |POSSIBLE_BUT_NOT_RECOMMENDED|NOT_POSSIBLE |true |true |9,25 |10,00 |0901 |100,00 |3 |20 |MEDICARD|0902 |true |Bru/Non-Brussels|0903 |01-01-1970| |65 |true |1 | | |table template |add plan delete first when already exists | |delete plan if exists|@{planName} | |add plan |@{planName}|withDutchDescription|@{dutchDescription}|andEnglishDescription|@{englishDescription}|andFrenchDescription|@{frenchDescription}|andGermanDescription|@{germanDescription}|andDutchShortDescription|@{dutchShortDescription}|andEnglishShortDescription|@{englishShortDescription}|andFrenchShortDescription|@{frenchShortDescription}|andGermanShortDescription|@{germanShortDescription}|andProductGroup|@{productGroup}|andProductType|@{productType}|andProductTargetGroupA|@{productTargetGroupA}|andProductTargetGroupB|@{productTargetGroupB}|andProductTargetGroupC|@{productTargetGroupC}|andProductForEntireFamily|@{productForEntireFamily}|andProductWithReserves|@{productWithReserves}|andRizivContribution|@{rizivContribution}|andInsuranceTax|@{insuranceTax}|andInsuranceTaxParagraph|@{insuranceTaxparagraph}|andCommisionAM|@{commisionAM}|andCommisionPlanId|@{commisionPlanId}|andKpe|@{kpe}|andMedicard|@{medicard}|andMedicardParagraph|@{medicardParagraph}|andMutualityStatus|@{mutualityStatus}|andGeoSegmentation|@{geoSegmentation}|andGeoSegmentationParagraph|@{geoSegmentationParagraph}|andStartDate|@{startDate}|andEndDate|@{endDate}|andMaxAge|@{maxAge}|andTransfertPossible|@{transfertPossible}|andAnnualPremiumAdaptation|@{annualPremiumAdaptation}|withReturnMessage|errorMessage?|



`|scenario        |add plan   |planName            |withDutchDescription|dutchDescription     |andEnglishDescription|englishDescription  |andFrenchDescription|frenchDescription   |andGermanDescription|germanDescription        |andDutchShortDescription|dutchShortDescription     |andEnglishShortDescription|englishShortDescription  |andFrenchShortDescription|frenchShortDescription   |andGermanShortDescription|germanShortDescription|andProductGroup|productGroup  |andProductType|productType           |andProductTargetGroupA|productTargetGroupA   |andProductTargetGroupB|productTargetGroupB   |andProductTargetGroupC|productTargetGroupC      |andProductForEntireFamily|productForEntireFamily|andProductWithReserves|productWithReserves |andRizivContribution|rizivContribution|andInsuranceTax|insuranceTax            |andInsuranceTaxParagraph|insuranceTaxParagraph|andCommisionAM|commisionAM       |andCommisionPlanId|commisionPlanId|andKpe|kpe        |andMedicard|medicard            |andMedicardParagraph|medicardParagraph |andMutualityStatus|mutualityStatus   |andGeoSegmentation|geoSegmentation            |andGeoSegmentationParagraph|geoSegmentationParagraph|andStartDate|startDate |andEndDate|endDate  |andMaxAge|maxAge              |andTransfertPossible|transfertPossible         |andAnnualPremiumAdaptation|annualPremiumAdaptation|withReturnMessage|errorMessage?|
|open plan overview                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|click           |id=ctl00_btnAdd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|fill plan fields|@{planName}|withDutchDescription|@{dutchDescription} |andEnglishDescription|@{englishDescription}|andFrenchDescription|@{frenchDescription}|andGermanDescription|@{germanDescription}|withDutchShortDescription|@{dutchShortDescription}|andEnglishShortDescription|@{englishShortDescription}|andFrenchShortDescription|@{frenchShortDescription}|andGermanShortDescription|@{germanShortDescription}|andProductGroup       |@{productGroup}|andProductType|@{productType}|andProductTargetGroupA|@{productTargetGroupA}|andProductTargetGroupB|@{productTargetGroupB}|andProductTargetGroupC|@{productTargetGroupC}|andProductForEntireFamily|@{productForEntireFamily}|andProductWithReserves|@{productWithReserves}|andRizivContribution|@{rizivContribution}|andInsuranceTax  |@{insuranceTax}|andInsuranceTaxParagraph|@{paragraphInsuranceTax}|andCommisionAM       |@{commisionAM}|andCommisionPlanId|@{commisionPlanId}|andKpe         |@{kpe}|andMedicard|@{medicard}|andMedicardParagraph|@{medicardParagraph}|andMutualityStatus|@{mutualityStatus}|andGeoSegmentation|@{geoSegmentation}|andGeoSegmentationParagraph|@{paragraphGeoSegmentation}|andStartDate            |@{startDate}|andEndDate|@{endDate}|andMaxAge|@{maxAge}|andTransfertPossible|@{transfertPossible}|andAnnualPremiumAdaptation|@{annualPremiumAdaptation}|withReturnMessage      |errorMessage?                  |
|click           |id=ctl00_btnSave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fhoebencommented, Oct 27, 2016

Table templates can call other scenarios and table templates can call other table templates. But for the latter to work you have to use the ‘special’ scenario call syntax placing all arguments behind the scenario/table template’s name as far as I’m aware. So you get something like:

|table template|my first template|
|my second template;|@{a}|@{b}|@{c}|

|table template|my second template|
|check|value of|A|@{a}|
|check|value of|B|@{b}|
|check|value of|C|@{c}|

|my first template|
|a|b|c|
|1|2|3|

I’ll see whether I can reproduce your problem with some templates with a few less columns, maybe that will make it clear to me what’s going on.

0reactions
Patrik911commented, Oct 28, 2016

Hallo,

I am afraid I have been wasting your time, and did not provide you with the complete picture, sorry.

What happened: In the top scenario I reversed the second parameter name by mistake: paragraphInsuranceTax instead of insuranceTaxParagraph

If you try to call this scenario directly this gives an error see the last table. (because there is a parameter mismatch)

Calling it via a table template does not gives this error. which gave as result that the second note line prints the value of @insuranceTax (VALUE1) followed by the word paragraph.

So there is no issue I made a mistake and was confused.
Anyhow I learned now how to call table templates from a table template.

`

|scenario|call1|insuranceTax|andInsuranceTaxParagraph|paragraphInsuranceTax| |note |@insuranceTax | |note |@insuranceTaxParagraph | |note |@paragraphInsuranceTax |

|table template|call2 | |call1 |@{insuranceTax}|andInsuranceTaxParagraph|@{insuranceTaxParagraph}|

|call2 | |insuranceTax|insuranceTaxParagraph| |VALUE1 |VALUE2 |

|call1 andInsuranceTaxParagraph| |insuranceTax |insuranceTaxParagraph | |VALUE1 |VALUE2 | `

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: type/value mismatch at argument 1 in template ...
The program when compiled gives following error: DBAccess.h:231:30: error: type/value mismatch at argument 1 in template parameter ...
Read more >
Mismatch between passed table valued parameter and User ...
I have created a user define Table Type with two columns viz. Id and Value (both are nullable). Now from my application I...
Read more >
3939 There is a mismatch between the number of parameters ...
3939 There is a mismatch between the number of parameters specified and the number of parameters required. Explanation: The EXECUTE command ...
Read more >
VBA ByRef Argument Type Mismatch Error - WallStreetMojo
Guide to VBA ByRef Argument Type Mismatch. Here we discuss top 3 reasons for ByRef Argument Type Mismatch Error with their solution in...
Read more >
Error ValidationException: One or more parameter values ...
... One or more parameter values were invalid: Type mismatch for key X expected: S ... Even though DynamoDB is schemaless, at the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found