Error trying to relate tables "...either doesn't exist or doesn't have a relationship to any table available in the current context"
I have two tables;
The first is my Order table which has a single row for each unique order - there are no duplicate order numbers.The order id column here is called
OrderID.
The second is my Submissions table which is similar to a transactions table, there are multiple submissions for every order. This table also contains an
OrderID column that contains the relevant OrderID.
The submission table also contains a calculated field called Date and a calculated field called
MaxDate field which is the date of the most recent submission that relates to any particular order in cases where there are multipple.
My goal is to add a column to the Order table this MaxDate column. The reason for duplicating the information rather than linking the tables is because I need to create more calculated columns in the
Orders table based on this value.
I have created a relationship between the two tables however when I use:
=RELATED(Submissions[MaxDate]
I get this error:
"...either doesn't exist or doesn't have a relationship to any table available in the current context"
I don't really understand why this would be, because MaxDate definitely exists and contains only numerical values. What is more strange is that if I try and combine the data through a pivot table it actually works! I can create a pivot with OrderID in the first
column and then associate it with MaxDate from the Submissions
table as the value.
Can anyone help me understand what is the problem here?
P.S. if it is useful the formula I'm using to calculate the MaxDate is:
=MAXX(FILTER(Submissions,Submissions[OrderID] = EARLIER(Submissions[OrderID])),[Date])
Thanks.
Maracles, is this still an issue?
Thanks!
Ed Price, SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it!
Similar Messages
-
How can I email a document created on Pages '08 that doesn't have to be opened as an attachment by
the recipients????
(I am using AT&T email)"when I try save to PDF it just wants to save it to a file?"
Correct. The difference between "Mail PDF" and "Save PDF" is that the first opens a new Mail message with the file attached. the second saves a file which you may attach to an email message.
"Terrainathome is a good example of what I am trying to do."
Not familiar with Terrainathome, but my guess is that the company is sending an email message containing HTML code that downloads what's essentially a web page into the displayed message. To do that, you'll need a website, software that will produce the necessary HTML code, and recipients with email clients capable of interpreting HTML (which is 'most email clients' these days).
Regards,
Barry -
Error in script task "The name 'file' does not exist in the current context"
I am new to the c# scripting and SSIS come from PHP and Foxpro.
I am using SSIS with a script task and I am getting am errror "The name 'file' does not exist in the current context" in the following code in the picture below: (See
Why does the object named "file" go away after the first refrence to it?? How do I make it avaliable for the whole script??
public void Main()
String cFileInfo = null;
DateTime dFTPFileDateTime;
bool fireAgain = true;
List<IRemoteFileInfo> fileList = (List<IRemoteFileInfo>)Dts.Variables["SFTPResult"].Value;
foreach (IRemoteFileInfo file in fileList)
cFileInfo = file.Name + "|" +file.ModifiedTime +"|"+ file.Size;
Dts.Events.FireInformation(1, "Name ", cFileInfo, "", 0, ref fireAgain);
dFTPFileDateTime =
file.ModifiedTime;
<< This is where the error is occuring.
Dts.TaskResult = (int)ScriptResults.Success;I think you forgot { and } after the loop... Or is that deliberately?
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
I need a calendar for my iPhone 4s which shows 'every 4th Saturday'or 'every 2nd Tuesday', etc., which unlike the Android caledar, the Apple one doesn't have. I've looked at others on the App Store, none of which appear to have this particular ability. Any ideas?
You can do this in iCloud calendars, actually. You just can't do it directly on the device. But, if you go to icloud.com & edit the calendar event, you can select "Custom" from the dropdown for Repeat & it will let you put in "every 4 wks on saturday" or even "every 28 days." But, again, you'd have to be using iCloud & you can only do this on the website.
-
I have a Ipod mini 6gb that still works but a new computer that doesn't have its software. How can I download the software for it
Check the iPod Hardisk health with the iPod Disk Diagnostic, as posted by tt2
https://discussions.apple.com/message/17776595#17776595
It wont fix your problem, but may tell help troubleshoot, why it is freezing iTunes, especially when the Pending and Realloc numbers are high.
have a nice day! -
10g: Must all related tables be in the same project?
Since we will eventaully have over 500 tables to map, we would like to be able to maintain these tables/classes in different projects. How do we map foreign key references between tables/classes that we would like to maintain in different projects?
I don't know if theis is why I'm getting this error, but I initially created two projects with independent tables. Then I wanted to join some tables in one project to some tables in another project. (This is all using Offline Database Objects.) I dropped some tables managed in project A into the diagram for project B and created the foreign key relations (from B to A.) Now whenever I try to open the TopLink Mappings node for project B in the Navigator, I get the following error. I get this error even if I drop ALL the tables from project A into project B's diagram (meaning there is nothing left in the schema that could be the missing 'parent'.)
Local Exception Stack:
Exception [TOPLINK-98] (Oracle9iAS TopLink - Release 2 (9.0.4.0) (Build 030612)): oracle.toplink.exceptions.DescriptorException
Exception Description: The underlying descriptor callback method [postBuild], with parameter (DescriptorEvent), triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.IllegalStateException: This object is missing a parent: MWTable[C14] (AVEGA.DATAMART)
Descriptor: XMLDescriptor(oracle.toplink.workbench.model.MWProject --> [DatabaseTable(project)])
at oracle.toplink.exceptions.DescriptorException.<init>(DescriptorException.java:207)
at oracle.toplink.exceptions.DescriptorException.<init>(DescriptorException.java:212)
at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileEventExecution(DescriptorException.java:1364)
at oracle.toplink.publicinterface.DescriptorEventManager.executeEvent(DescriptorEventManager.java:133)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:179)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:227)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:344)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
at oracle.toplink.publicinterface.Session.readObject(Session.java:2502)
at oracle.toplink.workbench.ui.WorkbenchSession.getMWProjectNamed(WorkbenchSession.java:270)
at oracle.toplink.addin.persistence.MWJDeveloperPersistence.open(MWJDeveloperPersistence.java:176)
at oracle.toplink.tsceditor.persistence.PersistenceManager.open(PersistenceManager.java:942)
at oracle.toplink.addin.manager.MWJDeveloperMediator.openMWProject(MWJDeveloperMediator.java:164)
at oracle.toplink.addin.manager.MWJDeveloperMediator.locateAndOpenProjectImp(MWJDeveloperMediator.java:626)
at oracle.toplink.addin.manager.MWJDeveloperMediator.getEditableObjectFor(MWJDeveloperMediator.java:430)
at oracle.toplink.addin.ui.view.explorer.MWExplorer.updateExplorer(MWExplorer.java:586)
at oracle.toplink.addin.ui.view.explorer.MWExplorer.setContext(MWExplorer.java:458)
at oracle.ideimpl.explorer.ExplorerManagerImpl.getExplorerForHost(ExplorerManagerImpl.java:1048)
at oracle.ideimpl.explorer.ExplorerWindowImpl.viewSelectionChanged(ExplorerWindowImpl.java:544)
at oracle.ide.addin.AbstractPinnable.viewSelectionChanged(AbstractPinnable.java:232)
at oracle.ideimpl.explorer.ExplorerWindowImpl.viewSelectionChanged(ExplorerWindowImpl.java:376)
... etc.If you wish to split your project up into two projects and have some relationships between some of those objects in the projects, you could map all of the objects for each project, but do not map the relationships. For those classes with relationships to other classes in other project you can define an amendment method. An amendment method is a callback into Java code that will be called when the descriptor is loaded. In this method you can then create the mapping to the class in the other project through the descriptor and mapping code API. (see oracle.toplink.mappings, oracle.toplink.publicinterface.Descriptor)
You can also make use of descriptor deactivation to define relationships between projects. For this you would import the related classes into the project and deactivate them. This will allow you to define relationships to them, but will not export their mapping information when deploying.
In general it is probably easier to keep everything in one project and use your content/code management system and merge tools to manage the project. -
System error -no entry in table T093 for the chart of depreciation or ccode
When checking Depreciation Areas of Company Codes in overview for experts (transaction SPRO) I first get a warning message inconsistent rounding entries were corrected.
After saving once in the maintenance transaction (as recommended in the help text) I get the following system error: there is no entry in table T093 for the chart of depreciation or company code. I checked table T093 and all entries are in there!
What else I have to correct?
Regards
Cordula Spehhi ,
yours is customizing problem only, check all steps once again in customizing. T093 is initial customizing for asset accounting. just go through below things and check based on this order all customizing.
1. Copy Reference Chart of Accounts Depreciation / Depreciation Areas.
2. Specify Description of Chart of Depreciation (COD).
3. Copy / Delete Depreciation Areas.
4. Creation of 0 Tax Codes for Non-Taxable Transaction.
5. Assign Tax Codes for Non-Taxable Transactions.
6. Assign COD to Company Code.
7. Specify Account Determination.
8. Create Screen Layout Rules.
9. Define Number Intervals.
check one by one and if you find anything missedout do it, i think max you prblm solve, if not give some more details about your problem.
thanks and regards
vk. -
i am doing an assignment for my class and i need to insert all of my 5 different flash files into one and create 5 buttons apply related actionscript 2 in order to play a particular animation. please help me out. thank you.
Provide the name of the program you are using so a Moderator may move this message to the correct program forum
The Cloud is not a program, it is a delivery process... a program would be Photoshop or Lighroom or Muse or ??? -
Table link for the current and historical functional location for equipment
Hi Gurus,
Can anyone please tell me the table link to find the historical functional location details for an equipment and the current functional location of the equipment?
Regards
AnoopDear,
In Table view V_EQUI u can get the details of current and past FL for an equipment.
Regards
Sunil -
MacBook doesn't have FrieWire port? How to move all the stuff from Mac to MacBook?
Hi,
Just bought my new MacBook (13-inch, mid 2010). Would like to move all the files, programes and etc from my old mac (11-inch, 2006, Tiger) to the MacBook. What's the easiest way of doing?
It seems the MacBook doesn't have a FireWire port.
Thank you!
AndreaHi Andrea,
See the Excellent Information Here, by Pondini
Transfer from Old to New
http://web.me.com/pondini/AppleTips/Setup.html
Cheers -
Error trying to open photo and doesn't allow me to save photo
Why is CS6 giving me an error when I try to open a photo? If I am lucky I can hit open and real fast double click something in the first thing that opens and it might open. Then I go to save it and the save box pops up and very quickly disappers. I have a mac and am running OS X 10.9. I just recently upgraded it and just recently did an update to PS as well. So frustrated! I tried to uninstall and reinstall, but it opened back up with all my actions still loaded and doing the same thing as it was before.
Has anyone else had this problem??? I feel like cryingClick here and ask the iTunes Store staff to zero your account balance.
(99669) -
Rawvalue reference Error: Invalid property get operation; dataGroup doesn't have property
When I reference a rawvalue of an object that does not exist I get an error. If the object does not exist i want to hid the form field. Any help with the javascript to do this
Hi,
This seems a little strange, a dataGroup sounds like you are referencing an object in your data connection, not a form object. A dataGroup object represents a group element, such as a complex type in an XML Schema definition and it does not have a rawValue (with uppercase "V") property. If you are referencing this object via a resolveNode call then you will get a null result if it does not exist.
Regards
Bruce -
I added a new xaml page to my project and copy and pasted some regular snippets to it that I've done before to many other pages. After all the changes looked good to me, I did a rebuild and got this error in the app.xaml.cs which I hadn't changed.
I also get the same error in the new page I created. It seems that the xaml design and code are not linked because there are other build errors in the new page's code file that reference other controls in it's design. Those references also look
ok to me but they get the similar "The name '.....' does not exist." error.
walter finkHi,
You don’t have “x:Class="DIYMedAPP.App"”
in your App.xaml file, which caused such error in App.xaml.cs. Please add it.
<Application
x:Class="DIYMedAPP.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">
<!--Application Resources-->
<Application.ApplicationLifetimeObjects>
<!--Required object that handles lifetime events for the application-->
<shell:PhoneApplicationService
Launching="Application_Launching"
Closing="Application_Closing"
Activated="Application_Activated"
Deactivated="Application_Deactivated"/>
</Application.ApplicationLifetimeObjects>
</Application>
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Error:The name 'GetValue' does not exist in the current context
hi all, i get that error when i tried to build my project , any help plz
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;
using Microsoft.Crm.Workflow;
using Microsoft.Crm.Sdk;
using System.Workflow.Runtime;
namespace MicrosoftDynamicsCrm4
[CrmWorkflowActivity("Calculate Age", "Programming Microsoft CRM 4")]
class CalculateAgeActivity
public static DependencyProperty EarlierDateProperty = DependencyProperty.Register(
"EarlierDate", typeof(CrmDateTime), typeof(CalculateAgeActivity));
[CrmInput("Earlier Date")]
public CrmDateTime EarlierDate
get { return (CrmDateTime)GetValue(EarlierDateProperty); }
set { SetValue(EarlierDateProperty, value); }well, i forgot to inherit from DependencyObject and now code seems good , but when i tried to add this function i get this error
note that i copy that snippet code from programming microsoft crm 4 ebook.
the new error is :Error 'MicrosoftDynamicsCrm4.CalculateAgeActivity.Execute(System.Workflow.ComponentModel.ActivityExecutionContext)': no suitable method found to override
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;
using Microsoft.Crm.Workflow;
using Microsoft.Crm.Sdk;
using System.Workflow.Runtime;
namespace MicrosoftDynamicsCrm4
[CrmWorkflowActivity("Calculate Age", "Programming Microsoft CRM 4")]
public class CalculateAgeActivity : DependencyObject
public static DependencyProperty EarlierDateProperty = DependencyProperty.Register(
"EarlierDate", typeof(CrmDateTime), typeof(CalculateAgeActivity));
[CrmInput("Earlier Date")]
public CrmDateTime EarlierDate
get { return (CrmDateTime)GetValue(EarlierDateProperty); }
set { SetValue(EarlierDateProperty, value); }
public static DependencyProperty LaterDateProperty = DependencyProperty.Register(
"LaterDate", typeof(CrmDateTime), typeof(CalculateAgeActivity));
[CrmInput("Later Date")]
public CrmDateTime LaterDate
get { return (CrmDateTime)GetValue(LaterDateProperty); }
set { SetValue(LaterDateProperty, value); }
public static DependencyProperty AgeProperty = DependencyProperty.Register(
"Age", typeof(string), typeof(CalculateAgeActivity));
[CrmOutput("Age")]
public string Age
get { return (string)GetValue(AgeProperty); }
set { SetValue(AgeProperty, value); }
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext executionContext)
CrmDateTime earlierDate = this.EarlierDate;
if (earlierDate != null)
CrmDateTime laterDate = this.LaterDate ?? CrmDateTime.Now;
this.Age = GenerateHumanReadableAge(
laterDate.UniversalTime - earlierDate.UniversalTime);
return ActivityExecutionStatus.Closed;
private string GenerateHumanReadableAge(TimeSpan age)
string result;
int years = age.Days / 365;
int months = age.Days / 30;
int weeks = age.Days / 7;
if (years > 1)
result = String.Format("{0} years", years);
else if (months > 1)
result = String.Format("{0} months", months);
else if (weeks > 1)
result = String.Format("{0} weeks", weeks);
else if (age.Days > 1)
result = String.Format("{0} days", age.Days);
else if (age.Hours > 1)
result = String.Format("{0} hours", age.Hours);
else if (age.Minutes > 1)
result = String.Format("{0} minutes", age.Minutes);
else
result = String.Format("{0} seconds", age.Seconds);
return result;
foreach(object HeartBeat in me.heart.Beats) messageBox.show("I miss u !!") -
Error: The name 'HttpUtility' does not exist in the current context
G'day,
My attempt to complete tutorial 'How to create a basic RSS reader for Windows Phone' (http://goo.gl/pLBHaL) has been unsuccessful, with the above-mentioned error generated on F5.
I have successfully installed, after some hiccups, OData Client Tools for Windows Phone Apps.
Any pointers would be appreciated.
Best,
GauravAnd for Windows Phone 8.1 you should use WebUtility rather than HttpUtility:
// Remove encoded HTML characters.
fixedString = WebUtility.HtmlDecode(fixedString);
Maybe you are looking for
-
Hi, I'm developing a camera animation system for Cinema 4D and looking ahead to see if it's adaptable for AE. In C4D I can create a custom camera object and control it's motion through code (no keys or visible scripting or expressions). Is this pos
-
Unable to install itunes again- getting error message
I'm getting this error message : Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services. as I install itunes. I've tried multiple times and no joy.
-
Error in uploading file using webutil_file_transfer
Hi, I am using webutil for a forms module which would upload the required file into the database using webutil_file_transfer.client_to_db_with_progress. I have made the necessary changes to the files webutil.cfg and formsweb.cfg as per the instructio
-
For 4 months the visible signature worked perfect. But today when I make a visible signature it is not visible. It seems to be kind of periodic: I tried one PDF document, and the visible signature was not visible Then I tried with another document, a
-
How to create monitor entries from an update routine?
Hi, Does anyone try to create monitor entries in ABAP routine in update rules? I have How-to guide "How to... Create monitor entries from an update routine". I applied code from it. RETURNCODE = 1. MONITOR-MSGID = 'RSM'. MONITOR-MSGTY = 'W'. *** I al