31
Views
11
Comments
Cannot use 'in' operator to search for 'internalValue' in undefined

Hello, community:

I'm facing an issue and could really use your help. I'm getting an error that I can't identify or resolve. I tried debugging, but I couldn't detect the root cause.

Currently, I have a component that calls another component from a different module. I've done some testing, but I still can't figure out what's causing the error.

I've already tried clearing the cache and browser data, but the problem persists.

I suspect the issue might be related to an event or coming from a specific block, but I'm not sure.

Has anyone encountered a similar error or has any ideas on how to resolve it?

I appreciate any suggestions!Best regards.



2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Cristian,

Just based on that description, it's quite hard to give a proper answer.

Do you have any JavaScript running in the page?

As a suggestion, try to check the browser's console, it may give you some extra information about the error.


Kind regards,

Rui Barradas

2022-03-10 08-26-10
Cristian Angel Puma Villalva

Hi Rui,

Thanks for your suggestion! I'll check if there's any JavaScript running on the page.

It's been challenging to find the error, but I'll keep investigating today.

2022-05-01 03-47-53
Jun Mun Chan

Hi Cristian,

Is it because you are using these server actions, and the Expand Inline is not set to yes in your SQL? 


2022-03-10 08-26-10
Cristian Angel Puma Villalva

Hi Jun Mun,

I'm not using SQL Server; I'm working with the local database. Could you explain more about the "Expand Inline"?

Thanks!

2022-12-30 07-28-09
Navneet Garg

Its seams you are not setting Expand Inline = True but its very hard to tell can you please provide oml or more detail like sql or use tes sql ?


2022-03-10 08-26-10
Cristian Angel Puma Villalva

Hi Navneet,

This is the second time someone mentions "Expand Inline = True." Where can I check that? The issue is that the component itself doesn't show any errors, but when I use it inside a parent component, the error appears.

I'm not using SQL Server; I'm working with the local database.

Thanks!

2024-07-16 17-36-51
Shradha Rawlani

Hi,

 SQL Query, when IN clause condition multiple values with comma separated should be there

you can use string join function to join all dates in string format then pass it in SQL

Regards

Shradha

2022-03-10 08-26-10
Cristian Angel Puma Villalva

Hi Shradha,

I'm not using SQL queries, but I'll look into the functions and string formats to see if I can find something there. Thanks for the suggestion!

I hope to find the error today.

Best regards!

2021-09-06 15-09-53
Dorine Boudry
 
MVP

to all recent responders, this is NOT related to sql or expand inline.  

It is a javascript message, as can be easily found with google, and as was already hinted at 12 hours ago by @Rui Barradas 

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/in_operator_no_object

@Cristian Angel Puma Villalva , not possible to help further without an oml with the actual problem in it, but the 'undefined' part would suggest that somewhere a piece of javascript is trying to use the 'in' operator on an object that is not defined (yet).

This could be because you are not using the underlying modules as intended or in the correct sequence, or they are not built very robust.

Dorine

2022-03-10 08-26-10
Cristian Angel Puma Villalva

Hi Dorine,

You’re absolutely correct; I’m not using SQL Server queries, just working with data through blocks.

Thank you for the explanation! I’ll review the block sequences and check the JavaScript executions step by step. Hopefully, I’ll be able to identify the issue.

Thanks again, and best regards!

2018-12-10 12-16-21
Goncalo Duarte Almeida

Hello @Cristian Angel Puma Villalva 

I encountered a similar issue before, though I don’t recall the exact use case. The root cause was that a JavaScript function was setting a variable during screen loading, but it ran before the data had fully loaded. As a result, the error occurred when trying to set the value. The solution was to ensure that the data was fully loaded before executing the JavaScript, which resolved the issue. 

My suggestion is the same—make sure all data is fully loaded before the screen is rendered. 

Regards

GdAlmeida

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.