cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE - oData connection - mock data

Former Member

Hi All,

On creating a data connection for Mock Data in New oData service, I keep getting the error, " Unhandled Error: Cannot read property '_sap:creatable' of undefined.

I've tried saving the file, instead of using Workspace as source, still same issue. I'm default Chrome user, but tried it on firefox and still same issue.

Any help appreciated. Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

seems to be an error in the Web IDE? I had the same Issue.

The error occurs only when you have only one <EntitySet> in the <EntityContainer>.

I just copied my <EntitySet> and it worked...

<EntityContainer Name="sflightModel" m:IsDefaultEntityContainer="true">
  <EntitySet Name="flightSet" EntityType="sflight.flight"></EntitySet>
  <EntitySet Name="flightSet2" EntityType="sflight.flight"></EntitySet>
</EntityContainer>

Regards,

Isaac

Former Member
0 Kudos

Thank you Isaac. It worked. Strange issue with WebIde tho.

Answers (8)

Answers (8)

michal_keidar
Active Contributor

Hi everyone,

After I reported this bug internally I was told that this issue is fixed and will be available mid March.

Regards,
Michal.

Former Member
0 Kudos

Hi Michal,

While creating Overview Page Application I am getting below error in Web IDE. Could you please the cause.

Thanks

michal_keidar
Active Contributor
0 Kudos

Hi,

I recommend to create a separate question on that.

Regards,
Michal.

Former Member
0 Kudos
Former Member
0 Kudos

hi guys,

am also following same type of error...

here is my xml file

<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0">

"); vertical-align: bottom; height: 10px;"><edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0"> "); vertical-align: bottom; height: 10px;"><Schema xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="public.iotmmsxs.iotservice"> "); vertical-align: bottom; height: 10px;"><EntityType Name="testType"> "); vertical-align: bottom; height: 10px;"><Key> <PropertyRef Name="GEN_ID"/> </Key> <Property Name="GEN_ID" Type="Edm.String" Nullable="false" MaxLength="2147483647"/> <Property Name="G_DEVICE" Type="Edm.String" MaxLength="255"/> <Property Name="G_CREATED" Type="Edm.DateTime"/> <Property Name="C_SPEED" Type="Edm.Int32"/> <Property Name="C_ACCELERATION" Type="Edm.Int32"/> <Property Name="C_FUELCONSUMED" Type="Edm.Double"/> <Property Name="C_GEAR" Type="Edm.Int32"/> <Property Name="C_GPSPOSITION" Type="Edm.String" MaxLength="255"/> <Property Name="C_ODODMETER" Type="Edm.Double"/> <Property Name="C_TRIPD" Type="Edm.String" MaxLength="255"/> </EntityType> "); vertical-align: bottom; height: 10px;"><EntityContainer Name="iotservice" m:IsDefaultEntityContainer="true"> <EntitySet Name="test" EntityType="public.iotmmsxs.iotservice.testType"/> </EntityContainer> </Schema> </edmx:DataServices>

</edmx:Edmx>

michal_keidar
Active Contributor
0 Kudos

Hi,

This looks like a bug, I have reported it internally, hopefully a fix will be available soon.

Michal.

Former Member
0 Kudos

Thanks Michal. Let us know when this is resolved please.

Former Member
0 Kudos
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:sap="http://www.sap.com/Protocols/SAPData">
	<edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0">
		<Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="Demo1">
			<EntityType Name="Customer">
				<Key>
					<PropertyRef Name="CustomerId"/>
				</Key>
				<Property Name="CustomerId" Nullable="false" Type="Edm.String"/>
				<Property Name="Name" Type="Edm.String"/>
				<Property Name="SalesOrg" Type="Edm.String"/>
			</EntityType>
			<EntityContainer Name="default" m:IsDefaultEntityContainer="true">
				<EntitySet EntityType="Demo1.Customer" Name="Customers"/>
				<EntitySet EntityType="Demo1.Customer" Name="Dummy"/>
			</EntityContainer>
		</Schema>
	</edmx:DataServices>
</edmx:Edmx>
yuval_morad
Employee
Employee
0 Kudos

can you attach the file used?

Former Member
0 Kudos

Hi Pankaja,

I did not use the SAP HCP Tutorial Navigator. I just did a simple one

1. created new project based on template, made sure oData plugins are enabled.

2. created oData model file ( edited edmx )

3. created mock data

4. creating oData service, selected the workspace and get the error above.

Thanks.

Former Member
0 Kudos

Hi Jeanne Loreto,

Are you trying this as per the SAP HCP Tutorial Navigator?